package com.test.mvcframework.interceptor;

import com.test.mvcframework.pojo.handler.Handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 请求拦截器
 * @author felix
 */
public interface HandlerInterceptor {
    /**
     * 拦截
     * @return
     */
    boolean intercept(HttpServletRequest request, HttpServletResponse response, Object handler) throws IOException;
}
